<?php
namespace Project_725\Lib;

use TwinPeaks\Core as Core;
use Project_725\FC_Frontend;

class URLManager extends Core\CStdlib
{
	use Core\TSingleton;
	
	/**
	 * @return CUrl
	 */
	function getAboutUs()
	{
		return FC_Frontend::getInstance()
			->getRuleById(FC_Frontend::ABOUT_US_RID)
			->getURI();
	}
	
	/**
	 * @return CUrl
	 */
	function getDownloadApp($code)
	{
		return FC_Frontend::getInstance()
			->getRuleById(FC_Frontend::DOWNLOAD_APP_RID)
			->getURI($code);
	}
	
	/**
	 * @return CUrl
	 */
	function getEmailConfirm($code)
	{
		return FC_Frontend::getInstance()
			->getRuleById(FC_Frontend::CONFIRM_EMAIL)
			->getURI($code);
	}
}
